package com.zjw.xm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjw1
 * @since 2022-08-03
 */
@TableName("cr_category")
public class CrCategory implements Serializable {

    @TableField(exist = false)
    private List<CrCategory> seconds;
    public List<CrCategory> getSeconds() {return seconds;}
    public void setSeconds(List<CrCategory> seconds) {this.seconds = seconds;}

    @TableField(exist = false)
    private List<CrBook> books;
    public List<CrBook> getBooks() {return books;}
    public void setBooks(List<CrBook> books) {this.books = books;}

    private static final long serialVersionUID = 1L;

      private Integer id;

    private String name;

    private Integer pid;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public Integer getPid() {
        return pid;
    }

      public void setPid(Integer pid) {
          this.pid = pid;
      }

    @Override
    public String toString() {
        return "CrCategory{" +
              "id=" + id +
                  ", name=" + name +
                  ", pid=" + pid +
              "}";
    }
}
